#include "Helper.h"
#include <sstream>
#include <cctype>

Helper::Helper()
{
}


Helper::~Helper()
{
}

int Helper::StringtoInt(string str)
{
	int result=0;
	istringstream convert(str);
	if(!(convert >> result))
	{
		cout << "Cannot convert to int" << endl;
	}
	return result;

}

string Helper::toUpperString(const string& s)
{
	string temp(s);
	for(unsigned int i=0;i<s.length();i++)
	{
		temp[i]=toupper(s[i]);
	}
	return temp;
}
